#ifndef VISUALDATA_H
#define VISUALDATA_H
#include <QGraphicsScene>
#include <QVector>

class VisualData: public QGraphicsScene
{
    Q_OBJECT
public:
    VisualData();

    void Init(int dataCount);

    QVector<int> &GetData()
    {
        return _data;
    }

public slots:
    void Refresh();

private:
    QVector<int> _data;
    QVector<QGraphicsLineItem *> _lines;
};

#endif // VISUALDATA_H
